import { action, observable } from "mobx";
import UserInfoModel from "../models/userInfo";


 export class UserInfoStore {
  @observable.deep userInfo: UserInfoModel|null=null; //深度监听userInfo对象

  @action setUserInfo(val: UserInfoModel) {
    // action更新用户信息
    this.userInfo=val
  }
}
export default new UserInfoStore();
